home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6404 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: fwrite help?
  5. Date: Sat, 24 Feb 96 15:11:49 GMT
  6. Organization: none
  7. Message-ID: <825174709snz@genesis.demon.co.uk>
  8. References: <4fmaig$7of@news.global1.net> <harmon.824165113@pegasus.montclair.edu> <danpop.824668361@rscernix> <824914553snz@genesis.demon.co.uk> <danpop.825021043@rscernix>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <danpop.825021043@rscernix> danpop@mail.cern.ch "Dan Pop" writes:
  15.  
  16. >In <824914553snz@genesis.demon.co.uk> fred@genesis.demon.co.uk (Lawrence Kirby)
  17. > writes:
  18. >
  19. >>In article <danpop.824668361@rscernix> danpop@mail.cern.ch "Dan Pop" writes:
  20. >>
  21. >>>If they succeed, both forms are equivalent.
  22. >>
  23. >>If they succeed one will have a return value of 1, the other of 8.
  24. >
  25. >But you don't care, because the respective values mean that all the data
  26. >have been successfully written, so they _are_ equivalent.
  27.  
  28. I do care because how I test for success depends on the form I use. You're
  29. correct that the 2 forms produce the same side-effects. However they
  30. produce a different result so are no more equivalent than i++ vs. ++i.
  31.  
  32. -- 
  33. -----------------------------------------
  34. Lawrence Kirby | fred@genesis.demon.co.uk
  35. Wilts, England | 70734.126@compuserve.com
  36. -----------------------------------------
  37.